<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="utf-8">
        <title>
            小程序商城管理平台
        </title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="../css/x-admin.css" media="all">

        <!--百度地图appid和样式-->
        <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=/DD279b2a90afdf0ae7a3796787a0742e/"></script>
        <!--引入jquery-->
        <script src="webjars/jquery/3.3.1/jquery.js"></script>
        <style type="text/css">
            body{font-size:13px;margin:0px;background-color: #090909;color: white}
            #container{height:510px;width:1200px;margin:0 auto}
        </style>

    </head>
    <body>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header header header-demo">
            <div class="layui-main">
                <a class="logo" href="index.html">
                    一站式商城管理平台
                </a>
                <ul class="layui-nav" lay-filter="">
                    <li class="layui-nav-item"><img src="../images/logo.png" class="layui-circle" style="border: 2px solid #A9B7B7;" width="35px" alt=""></li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">admin</a>
                        <dl class="layui-nav-child"> <!-- 二级菜单 -->
                            <dd><a href="">个人中心</a></dd>
                            <dd><a href="../logout">退出</a></dd>
                        </dl>
                    </li>
                    <!-- <li class="layui-nav-item">
                      <a href="" title="消息">
                          <i class="layui-icon" style="top: 1px;">&#xe63a;</i>
                      </a>
                      </li> -->
                    <li class="layui-nav-item x-index"><a th:href="@{'../index'}">首页</a></li>
                </ul>
            </div>
        </div>
        <div class="layui-side layui-bg-black x-side">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree site-demo-nav" lay-filter="side">
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe607;</i><cite>会员管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../user/toUserList'}">
                                    <cite>用户列表</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../user/toAdminList'}">
                                    <cite>管理员管理</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../user/toRoleList'}">
                                    <cite>角色管理</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../user/toNoteList'}">
                                    <cite>短信管理</cite>
                                </a>
                            </dd>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe62d;</i><cite>商品管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../commodity/toCommodityList'}">
                                    <cite>商品列表</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../commodity/toClassifyList'}">
                                    <cite>商品分类</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../commodity/toTradeTrademarkList'}">
                                    <cite>品牌列表</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../commodity/toMoldList'}">
                                    <cite>商品类型</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../commodity/toParameterList'}">
                                    <cite>商品属性</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../commodity/toPropertyList'}">
                                    <cite>参数列表</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../commodity/toEvaluateList'}">
                                    <cite>商品评价</cite>
                                </a>
                            </dd>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe634;</i><cite>订单管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../order/orderlist'}">
                                    <cite>订单列表</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../invoice/invoicelist'}">
                                    <cite>发货单列表</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../billoflading/BillListAll'}">
                                    <cite>提货单列表</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../aftersale/aftersalelist'}">
                                    <cite>售后单列表</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../return/returnlist'}">
                                    <cite>退货单列表</cite>
                                </a>
                            </dd>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe642;</i><cite>运营管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../Article/Articlelist'}">
                                    <cite>文章列表</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../notice/noticelist'}">
                                    <cite>公告列表</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../ArticleType/ArticleTypelist'}">
                                    <cite>文章分类</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../Advertising/Advertisinglist'}">
                                    <cite>广告列表</cite>
                                </a>
                            </dd>
                            </dd>
                            <dd class="">
                            <dd class="">
                                <a th:href="@{'../Advertisingspace/Advertisingspacelist'}">
                                    <cite>广告位列表</cite>
                                </a>
                            </dd>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe630;</i><cite>促销管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                                <a th:href="@{'../promotion/seckillList'}">
                                    <cite>团购秒杀列表</cite>
                                </a>
                            </dd>
                            <dd class="">
                                <a th:href="@{'../coupon/couponList'}">
                                    <cite>优惠券列表</cite>
                                </a>
                            </dd>
                            <dd class="">
                                <a th:href="@{'../sales/salesList'}">
                                    <cite>促销列表</cite>
                                </a>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe606;</i><cite>财务管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                                <a th:href="@{'../paylist'}">
                                    <cite>支付单列表</cite>
                                </a>
                            </dd>
                            <dd class="">
                                <a th:href="@{'../withdlist'}">
                                    <cite>提现列表</cite>
                                </a>
                            </dd>
                            <dd class="">
                                <a th:href="@{'../metlist'}">
                                    <cite>支付方式列表</cite>
                                </a>
                            </dd>
                            <dd class="">
                                <a th:href="@{'../retlist'}">
                                    <cite>退款单列表</cite>
                                </a>
                            </dd>
                            <dd class="">
                                <a th:href="@{'../acclist'}">
                                    <cite>账户资金管理</cite>
                                </a>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe612;</i><cite>控制面板</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                                <a th:href="@{'../explist'}">
                                    <cite>导入导出</cite>
                                </a>
                            </dd>
                            <dd class="">
                                <a th:href="@{'../piclist'}">
                                    <cite>图片列表</cite>
                                </a>
                            </dd>
                            <dd class="">
                                <a th:href="@{'../stolist'}">
                                    <cite>门店列表</cite>
                                </a>
                            </dd>
                            <dd class="">
                                <a th:href="@{'../log/loglist'}">
                                    <cite>操作日志</cite>
                                </a>
                            </dd>
                            <dd class="">
                                <a th:href="@{'../logisticsCompany/getLogistics'}">
                                    <cite>物流公司列表</cite>
                                </a>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe613;</i><cite>微信管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                                <a th:href="@{'../official/getOfficial'}">
                                    <cite>公众号配置</cite>
                                </a>
                            </dd>
                            <dd class="">
                                <a th:href="@{'../official/getApplet'}">
                                    <cite>小程序配置</cite>
                                </a>
                            </dd>
                        </dl>
                    </li>
                </ul>
                </div>

            </div>
            <div class="layui-tab layui-tab-card site-demo-title x-main" lay-filter="x-tab" lay-allowclose="true">
                <div class="x-slide_left"></div>


                <!--输入框-->
                <div style="text-align: center">

                    <div style="display:inline;text-align: center" >请输入详细地址:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div class="layui-input-inline seller-inline-3"><input type="text"  class="layui-input" id="suggestId" size="30" placeholder="请输入地址" value="百度"  /></div></div>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <div style="display: inline">
                        当前经度:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <div class="layui-input-inline seller-inline-3"> <input type="text" id="jing" placeholder="当前经度" readonly class="layui-input"/></div>
                    </div>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <div style="display: inline">
                        当前纬度:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <div class="layui-input-inline seller-inline-3"> <input type="text" id="wei" readonly placeholder="当前纬度" class="layui-input" /></div>
                    </div>
                </div>

                <div id="container"></div>
                <div style="text-align: center;color: white;"><strong>请允许您的浏览器获取位置权限，否则将不能实时定位</strong></div>



            </div>
            <div class="site-mobile-shade">
            </div>
        </div>
        <script src="../lib/layui/layui.js" charset="utf-8"></script>
        <script src="../js/x-admin.js"></script>
        <script>
        var _hmt = _hmt || [];
        (function() {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
          var s = document.getElementsByTagName("script")[0];
          s.parentNode.insertBefore(hm, s);
        })();
        </script>




    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>



    <!--百度地图js-->
    <script type="text/javascript">

        function G(id) {
            return document.getElementById(id);
        }
        var lng = document.getElementById('jing');
        var lat = document.getElementById('wei');
        var map = new BMap.Map("container");
        var point = new BMap.Point(116.3964,39.9093);//111.61464769,26.43597165
        map.centerAndZoom(point,13);
        map.enableScrollWheelZoom();

        var ac = new BMap.Autocomplete(    //建立一个自动完成的对象
            {"input" : "suggestId"
                ,"location" : map
            });

        ac.addEventListener("onhighlight", function(e) {  //鼠标放在下拉列表上的事件

            var str = "";
            var _value = e.fromitem.value;
            var value = "";
            if (e.fromitem.index > -1) {
                value = _value.province +  _value.city +  _value.district +  _value.street +  _value.business;
            }
            str = "FromItem<br />index = " + e.fromitem.index + "<br />value = " + value;

            value = "";
            if (e.toitem.index > -1) {
                _value = e.toitem.value;
                value = _value.province +  _value.city +  _value.district +  _value.street +  _value.business;
            }
            str += "<br />ToItem<br />index = " + e.toitem.index + "<br />value = " + value;

        });

        var myValue;
        ac.addEventListener("onconfirm", function(e) {    //鼠标点击下拉列表后的事件
            lng.value = '';
            lat.value = '';
            var _value = e.item.value;
            myValue = _value.province +  _value.city +  _value.district +  _value.street +  _value.business;

            setPlace();
        });

        function setPlace(){// 创建地址解析器实例
            var myGeo = new BMap.Geocoder();// 将地址解析结果显示在地图上,并调整地图视野
            myGeo.getPoint(myValue, function(point){
                if (point) {
                    map.centerAndZoom(point, 16);
                    map.addOverlay(new BMap.Marker(point));
                }
            });
        }


        map.addEventListener('click', function (e) {

            lng.value = e.point.lng;
            lat.value = e.point.lat;
        })


        //定位到当前位置
        var geolocation = new BMap.Geolocation();
        geolocation.getCurrentPosition(function(r){
            if(this.getStatus() == BMAP_STATUS_SUCCESS){
                var mk = new BMap.Marker(r.point);
                map.addOverlay(mk);
                map.panTo(r.point);
                alert('您的位置：'+r.point.lng+','+r.point.lat);
            }
            else {
                alert('failed'+this.getStatus());
            }
        });
    </script>
    </body>
</html>